import { Context } from "../class/Context";
import { Hurt } from "../class/Hurt";
import { Method } from "../class/Method";

/**
 * 蓝银霸王枪
 */
export class LanYingBaWangQiang extends Method {
    public CD: number = 30E3;
    static methodName: string = "蓝银霸王枪";
    public describe: string = "对目标造成 2000 + 200%(PA) 的物理伤害 和 1000 真实伤害。";
    invoke(context: Context) {
        const itId = context.nextParam()
        const it = this.masterRole.game.getRole(itId);

        // 造成的物理伤害
        const PA = this.masterRole.getPhysicsAttack() * 2 + 2000;
        // 让对方承受伤害
        it.onHurt(this.masterRole, new Hurt(PA, 0, 1000))
    }
}